<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/settlement/view/" id="searchForm">
		<input type="hidden"  name="settlement.settlementNo"  value="${settlement.settlementNo!}"/>
		<div class="col-md-12">
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-md-3 control-label">${_res["commissionDetail.investor"]}</label>
					<div class="col-md-9">
							<p class="form-control-static"><#cust customerId="${settlement.userid!}"/></p>
					</div>
				</div>
			</div>

			<div class="col-md-4">
				<div class="form-group">
					<label class="col-md-3 control-label">${_res["system.startdate"]}</label>
					<div class="col-md-9">
							<input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionDetail.gt_createtime" placeholder="${_res['system.startdate']}" value="${paramMap['commissionDetail.gt_createtime']}"/>
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-md-3 control-label">${_res["system.enddate"]}</label>
					<div class="col-md-9">
							<input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionDetail.le_createtime" placeholder="${_res['system.enddate']}" value="${paramMap['commissionDetail.le_createtime']}"/>
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="col-md-3 control-label">${_res["commissionDetail.commsiontype"]}</label>
					<div class="col-md-9">
							<#dict type="select" class="form-control" name="commissionDetail.f_commssiontype" dictCode="COMMISSION_TYPE" defaultValue="${paramMap['commissionDetail.f_commssiontype']}"/><br>
					</div>
				</div>
			</div>

			<div class="col-md-4">
				<div class="form-group">
					<label class="col-md-3 control-label">${_res["settlement.status"]}</label>
					<div class="col-md-9">
							<#dict type="select" class="form-control" name="commissionDetail.f_status" dictCode="SETTLEMENT_STATUS" defaultValue="${paramMap['commissionDetail.f_status']}"/><br>
					</div>
				</div>
			</div>
			<div class="col-md-3">
				<div class="form-group">
					<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
						<i class="fa fa-search m-l-sm m-r-xs"></i> ${_res["system.search"]}
					</button>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="row searchLineWrap">
	<table class="table  table-bordered table-hover">
		<thead>
			<tr>
				<th>${_res["commissionDetail.investor"]}</th>
				<th>${_res["commissionDetail.related.person"]}</th>
				<th>${_res["commissionDetail.commsiontype"]}</th>
				<th>${_res["project.name"]}</th>
				<th>${_res["commissionDetail.amount"]}</th>
				<th>${_res["commission.rule.type"]}/${_res["commission.rule.rebate"]}</th>
				<th>${_res["commissionDetail.status"]}</th>
				<th>${_res["system.memo"]}</th>
				<th>${_res["system.operatortime"]}</th>
			</tr>
		</thead>
		<tbody>
			<%for (commissionDetail in commissionDetailList!){%>
				<tr class="gradeC">
					<td><#cust customerId="${commissionDetail.userid!}"/></td>
					<td><#cust customerId="${commissionDetail.relatedrPerson!}"/></td>
					<td><#dict type="lable" value="${commissionDetail.commissiontype!}" dictCode="COMMISSION_TYPE" /></td>
					<td><#dict type="lable" table="project" filedName="name" filedValue="id" value="${commissionDetail.ProjectId}"/></td>
					<td><#dict type="lable" value="${commissionDetail.currency!}" dictCode="CURRENCY" />,${commissionDetail.commission!}</td>
					<td><#dict type="lable" value="${commissionDetail.feetype!}" dictCode="COMMISSION_FEE_TYPE" />/${commissionDetail.rebate!}</td>
					<td><#dict type="lable" value="${commissionDetail.status!}" dictCode="SETTLEMENT_STATUS" /></td>
					<td>${commissionDetail.memo!}</td>
					<td>${commissionDetail.createtime!}</td>
				</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm" />
	</div>
	<#nav />
</div>

<div class="form-group">
	<div class="col-md-9 col-md-offset-2">
		<button type="button" class="btn btn-warning" onClick="ajaxContent('/admin/settlement');">${_res["system.return"]}</button>
	</div>
</div>